<template>
	<view class="topfix">
		<topfix>
			<template #l>
				<view class="topfix-l" @click="back">
					<view class="iconfont icon-jiantouyou"></view>
				</view>
			</template>
			<template #c>
				<view class="topfix-c">
					<view class="">营业状态</view>
				</view>
			</template>
		</topfix>
	</view>
	<view class="con-card">
		<view class="cir"></view>
		<view class="line">
			<view class=""></view>
		</view>
		<view class="box">
			<view class="l">
				<view class=""></view>
				<view class=""></view>
			</view>
			<view class="c">
				<view class="c-con">
					<view class="cir-tl cirt"></view>
					<view class="cir-tr cirt"></view>
					<view class="cir-bl cirt"></view>
					<view class="cir-br cirt"></view>
					<view class="coninfo">
						<view class="grencir"></view>
						<view class="">营业中</view>
					</view>
				</view>
			</view>
			<view class="r">
				<view class=""></view>
				<view class=""></view>
			</view>
		</view>
	</view>
     <view class="tag">当前店铺处于营业时间内，正常接收新订单</view>
     <view class="bu">停止营业</view>
	 <view class="xtag">当您希望长时间不再接收订单时，请点击上方按钮停止昔业，开启后需手动恢复。</view>
	 <view class="time">外卖营业时间段:11:00-14:00.17:00-20-00</view>
</template>

<script setup>
	import topfix from '@/components/fixtop/fixtop.vue'
	const back=()=>{
		uni.navigateBack()
	}
</script>

<style lang="scss" scoped>
	.tag{
		margin-top: 45rpx;
		display: flex;
		justify-content: center;
		font-size: 28rpx;
	}
	.bu{
		width: 80%;
		height: 100rpx;
		background-color: #ff644d;
		border-radius:100rpx;
		margin:90rpx auto 50rpx auto;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 30rpx;
	}
	.xtag{
		width: 80%;
		margin: auto;
		color: #7b7b7b;
		font-size: 25rpx;
	}
	.time{
		position: absolute;
		width: 80%;
		bottom: 100rpx;
		left: 50%;
		transform: translateX(-50%);
		color: red;
		font-size: 28rpx;
		display: flex;
		justify-content: center;
	}
	.con-card {
		height: 500rpx;
		position: relative;

		>view {
			left: 50%;
			transform: translateX(-50%);
		}
	}

	.cir {
		position: absolute;
		height: 40rpx;
		width: 40rpx;
		background-color: #f1b847;
		border-radius: 50%;
		bottom: 250rpx;
		z-index: 99;
	}

	.line {
		position: absolute;
		height: 300rpx;
		width: 150rpx;
		background-color: #f1b847;
		clip-path: ellipse(45% 40% at 50% 50%);
		display: flex;
		justify-content: center;
		align-items: center;
		bottom: 0;

		>view {
			height: 290rpx;
			width: 140rpx;
			background-color: #fff;
			clip-path: ellipse(45% 40% at 50% 50%);
		}
	}

	.box {
		position: absolute;
		height: 150rpx;
		width: 300rpx;
		background-color: #ff644d;
		border-radius: 15rpx;
		bottom: 0;
		display: flex;
		padding: 10rpx;

		.l {
			height: 100%;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: center;

			>view {
				width: 20rpx;
				height: 20rpx;
				border-radius: 50%;
				background-color: #fff;
			}
		}

		.c {
			flex: 1;
			display: flex;
			align-items: center;
			justify-content: center;

			.c-con {
				position: relative;
				width: 220rpx;
				height: 110rpx;
				background-color: #fff;

			}

			.coninfo {
				width: 100%;
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%, -50%);
				display: flex;
				justify-content: center;
				align-items: center;
				gap: 10rpx;
				font-size: 28rpx;
				font-weight: 700;

				.grencir {
					width: 25rpx;
					height: 25rpx;
					background-color: #00cc99;
					border-radius: 50%;
				}
			}

			.cirt {
				position: absolute;
				height: 20rpx;
				width: 20rpx;
				background-color: #ff644d;
				border-radius: 50%;
			}

			.cir-tr {
				right: -2rpx;
				top: -2rpx;
			}

			.cir-tl {
				left: -2rpx;
				top: -2rpx;
			}

			.cir-br {
				bottom: -2rpx;
				right: -2rpx;
			}

			.cir-bl {
				bottom: -2rpx;
				left: -2rpx;
			}
		}

		.r {
			height: 100%;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: center;

			>view {
				width: 20rpx;
				height: 20rpx;
				border-radius: 50%;
				background-color: #fff;
			}
		}
	}

	.topfix {
		background-color: #ff644d;
		color: #fff;

		.topfix-l {
			height: 100%;
			width: 100%;
			display: flex;
			align-items: center;
			padding-left: 20rpx;

			.iconfont {
				font-size: 25rpx;
				transform: rotate(180deg);
			}
		}

		.topfix-c {
			height: 100%;
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 31rpx;
		}
	}
</style>